<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript">
	$(function(){
		$(".one").blur(function(){
			var a = $(this).val();
			if(IsString(a)){
				$(".two").val("正确");
			}else{
				$(".two").val("错误");
			}
		});
		
		function IsDate(num){
			var regexp = /^([1][7-9][0-9][0-9]|[2][0][0-9][0-9])(\-)([0][1-9]|[1][0-2])(\-)([0-2][1-9]|[3][0-1])$/g;
			// 日期范围：1700-01-01 ----2099-01-01 　
			return regexp.test(num);
			}
		function IsString(font){
			var regexp = /^[\二\三\四\八]人桌$/g;
			return regexp.test(font);
		}
	});
</script>
<style type="text/css">
	span{
		width:28px;
		
	}
	.two{
		boder:0px solid white;
		disabled:disabled;
		background-color: white;
	}
</style>
</head>
<body>
	<a href="StaffServlet?op=selectOneself&sid=0727100318">员工自己修改</a>
	<a href="StaffServlet?op=selectByStatus&status=0" >点击</a>
	<a href="http://www.baidu.com">百度一下</a>
	<a href="StaffServlet?op=selectStaff" >点击</a>
	<a href="DiningServlet?op=tableShow" >点击</a>
	<p>阿<span></span>三</p>
	<input type="text" class="one"><input type="text" class="two" disabled="disabled">
</body>
</html>